/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-05-07
 * Time: 14:52
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class DList {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.addLast(2);
        myLinkedList.addLast(1);
        myLinkedList.display();
        myLinkedList.removeAllKey(2);
        myLinkedList.display();
        //System.out.println(myLinkedList.contains(6));

//        myLinkedList.addIndex(0,0);
//        myLinkedList.addIndex(6,6);
//        myLinkedList.addIndex(4,6);
//        myLinkedList.display();
//        System.out.println(myLinkedList.size());

    }
}
